<template>
  <view class="app-container owner-contract-page">
    <view class="contract-wrapper">
      <view class="contract-content" v-html="contract">
      </view>
    </view>
  </view>
</template>

<script>
import {ownerContractDetail} from "@/api/mine/owner";

export default {
  data() {
    return {
      proprietorContractId: null,
      contract: ""
    };
  },
  onLoad(options) {
    this.proprietorContractId = options.id;
    this.getDetail(this.proprietorContractId)
  },
  methods: {
    getDetail(id) {
      ownerContractDetail(id).then(res => {
        this.contract = res.data.contractContent;
        console.log(this.contract)
      })
    }

  },
}
</script>

<style lang="scss" scoped>
.owner-contract-page {
  padding: 20rpx;
}

</style>